<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>用户管理</title>
    <script src="js/authority/jquery.min.js"></script>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="js/authority/popper.min.js"></script>
    <script src="js/authority/bootstrap.min.js"></script>

    <link rel="stylesheet" href="css/all.css"
          integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
    <script src="js/authority/html5shiv.min.js"></script>
    <script src="js/authority/respond.min.js"></script>
    <!--fontawesome-->
    <script src="js/authority/all.min.js"></script>
    <link href="css/bootstrap-table.min.css" rel="stylesheet">
    <script src="js/authority/bootstrap-table.min.js"></script>
    <!--bootstrap-table-lanuage-->
    <script src="js/authority/bootstrap-table-locale-all.min.js"></script>
    <!--bootstrap-table-export-->
    <script src="js/authority/bootstrap-table-export.min.js"></script>
<!--    &lt;!&ndash;在客户端保存生成的导出文件&ndash;&gt;-->
<!--    <script src="https://cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver.min.js"></script>-->
    <!--以XLSX（Excel 2007+ XML格式）格式导出表（SheetJS）-->
    <script src="js/authority/xlsx.core.min.js"></script>
    <!--以PNG格式导出表格-->
    <!--对于IE支持包括 html2canvas 之前的 es6-promise-->
    <script src="js/authority/es6-promise.auto.min.js"></script>
    <script src="js/authority/html2canvas.min.js"></script>
    <!--将表导出为PDF文件-->
    <script src="js/authority/jspdf.min.js"></script>
    <script src="js/authority/jspdf.plugin.autotable.js"></script>
    <!--无论期望的格式如何，最后都包含 tableexport.jquery.plugin（不是tableexport）-->
    <script src="js/authority/tableExport.min.js"></script>
    <script src="js/authority/bootstrap-table-zh-CN.min.js"></script>
<!--    <script src="/static/js/fileinput.js"></script>-->
    <script src="js/fileinput.js"></script>

    <style>
        td {
            font-size: 15px;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">
                <img alt="Brand" src="/Wlogo.png" style="height: 20px">
            </a>
            <a class="navbar-brand" href="Main.html">巡航机器人监控系统</a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
            <p class="navbar-text navbar-right" id="datetime">
                <script>
                    setInterval("document.getElementById('datetime').innerHTML=new Date().toLocaleString();", 1000);
                </script>
            </p>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">异常反馈</a></li>
                <li><a href="#">刷新</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="true">欢迎您，肖亮！<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">权限查看</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="index.html">切换账户</a></li>
                        <li><a href="index.html">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <ol class="breadcrumb">
                    <li><a href="welcome.html">首页</a></li>
                    <li class="active">用户管理</li>
                </ol>
                <a href="UserManagement.html" class="list-group-item active">用户管理</a>
            </div>
            <div class="list-group">
                <a href="#" class="list-group-item active">
                    <h4 class="list-group-item-heading">巡航机器人监控系统</h4>
                    <p class="list-group-item-text">2021 © 中国煤炭科工集团</p>
                </a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="jumbotron">
                <h2 class="text-center">用户管理列表</h2>
            </div>
            <div class="panel panel-default">
                <div class="panel-body">

                        <div class="row" id="user-form">
                            <div class="col-xs-4">
                                用户名：<input id="txt_search_userName" name="userName" type="text" class="form-control"
                                           placeholder="">
                            </div>
                            <div class="col-xs-4">
                                部门：<select id="txt_search_dept" name="dept" class="form-control">
                                <option value="">请选择
                                <option value="工程部">工程部
                                <option value="科研部">科研部
                                <option value="运维部">运维部门
                            </select>
                            </div>
                            <div class="col-xs-4">
                                <button id="searchButton" class="btn btn-warning " style="margin-top: 15px;width: 150px">
                                    <span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询
                                </button>
                            </div>
                        </div>

                </div>

            </div>
            <div class="panel panel-default">
                <div class="panel-body">
                    <button id="btn_add" type="button" class="btn btn-default" data-toggle="modal"
                            data-target="#exampleModalAdd">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
                    </button>
                    <button id="btn_del" type="button" class="btn btn-default">
                        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>删除
<!--                              onclick="delUserManagement()"></span>删除-->

                    </button>
                    <table id="table-UserManagement"></table>
                </div>
            </div>

        </div>
    </div>
</div>
<!--添加模态框显示-->
<div class="modal fade" id="exampleModalAdd" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="addForm" method="post" enctype="multipart/form-data">
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="userName" class="control-label">用户名：</label>
                        <input type="text" class="form-control" id="userName" name="userName" >
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="pswd" class="control-label">密码：</label>
                        <input type="text" class="form-control" required="required" maxlength="8" id="pswd"
                               name="pswd">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="roleId" class="control-label">角色：</label>
                        <select class="form-control" id="roleId" name="roleId">
                            <option value="1">admin
                            <option value="2">departLeader
                            <option value="3">user
                        </select>
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
    <!--                    新建-->
                        <label for="userPicObject" class="control-label">头像：</label>
                        <input type="file" class="form-control" required="required" id="userPicObject" name="userPicObject">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="dept" class="control-label">部门：</label>
                        <select class="form-control" id="dept" name="dept">
                            <option value="工程部">工程部
                            <option value="科研部">科研部
                            <option value="运维部">运维部门
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="telNum" class="control-label">电话：</label>
                        <input type="text" class="form-control" id="telNum" name="telNum">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" id="addNewButton">确定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--修改模态框显示-->
<div class="modal fade" id="exampleModalupdate" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel"></h4>
            </div>
            <div class="modal-body">
                <form id="updateForm" method="post" enctype="multipart/form-data">
                    <div class="form-group">
                        <input type="hidden" class="form-control" id="userId-update"
                               name="userId">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="imgEmdImg1" class="control-label">用户照片：</label>
                        <img style="width:100px;height:100px" id="imgEmdImg1" name="imgEmdImg1" class="img-circle">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="userName-update" class="control-label">更新后用户名：</label>
                        <input type="text" class="form-control" id="userName-update"
                               name="userName">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="pswd-update" class="control-label">更新后密码：</label>
                        <input type="text" class="form-control" required="required" maxlength="5" id="pswd-update"
                               name="pswd">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="roleId-update" class="control-label">更新后角色：</label>
                        <select class="form-control" id="roleId-update" name="roleId">
                            <option value="1">admin
                            <option value="2">departLeader
                            <option value="3">user
                        </select>
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="userPic-update" class="control-label">头像：</label>
                        <input type="file" class="form-control" required="required" maxlength="5" id="userPic-update"
                               name="userPicObject">
                    </div>
                    <div class="form-group">
                        <em style="color: red;">*</em>
                        <label for="dept-update" class="control-label">更新后部门：</label>
                        <select class="form-control" id="dept-update" name="dept">
                            <option value="工程部">工程部
                            <option value="科研部">科研部
                            <option value="运维部">运维部
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="telNum-update" class="control-label">更新后电话：</label>
                        <input type="text" class="form-control" id="telNum-update" name="telNum">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" id="updateNewButton">确定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- 图片模态框 -->
<!--<div id="modalPic" class="modal fade" id="exampleModalPic" tabindex="-1" aria-labelledby="exampleModalLabel"-->
<div  class="modal fade" id="exampleModalPic" tabindex="-1" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg modal-fullscreen-lg-down">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabelPic">Modal title</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="file-loading">
                    <input id="input-b7" name="input-b7[]" multiple type="file" class="file"
                           data-allowed-file-extensions='["jpg", "png"，"jpeg"]'>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
    </div>
</div>
<script src="js/usermanagement-table.js"></script>
<script>

</script>

</body>
</html>